package com.queryBuilder.dao;

import java.io.Serializable;
import java.util.List;

import org.json.JSONArray;

import com.queryBuilder.entity.QueryBuilder;

public interface QueryBuilderDao {
	 public <T> T findById(Class<T> type, Serializable id);    
     
	    public List<QueryBuilder> findAll(Class type);    
	    
	    public void save(Object... entities);    
	    
	    public void update(Object... entities);    
	    
	    public void saveOrUpdate(Object entity);    
	    
	    public void delete(Object... entities);    
	    
	    public void deleteById(Class<?> type, Serializable id);    
	    
	    public void refresh(Object... entities);    
	    
	    public void flush();  
	public JSONArray findByClsAndPro(String clsName,String proName);
}
